package org.colin.dictPojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 词头 - 实例 
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-18
 */
@TableName("d_entry_phrase")
public class DEntryPhrase extends Model<DEntryPhrase> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 词头ID
     */
    @TableField("entryId")
    private Integer entryId;

    /**
     * 语种
     */
    private Integer language;

    /**
     * 组词
     */
    private String phrase;

    /**
     * 释义
     */
    private String interpretation;

    /**
     * 例句
     */
    private String sentence;

    /**
     * 词性
     */
    private String part;

    /**
     * 例句  翻译
     */
    @TableField("interpretationTranslate")
    private String interpretationTranslate;

    /**
     * 拼音
     */
    private String pinyin;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEntryId() {
        return entryId;
    }

    public void setEntryId(Integer entryId) {
        this.entryId = entryId;
    }

    public Integer getLanguage() {
        return language;
    }

    public void setLanguage(Integer language) {
        this.language = language;
    }

    public String getPhrase() {
        return phrase;
    }

    public void setPhrase(String phrase) {
        this.phrase = phrase;
    }

    public String getInterpretation() {
        return interpretation;
    }

    public void setInterpretation(String interpretation) {
        this.interpretation = interpretation;
    }

    public String getSentence() {
        return sentence;
    }

    public void setSentence(String sentence) {
        this.sentence = sentence;
    }

    public String getPart() {
        return part;
    }

    public void setPart(String part) {
        this.part = part;
    }

    public String getInterpretationTranslate() {
        return interpretationTranslate;
    }

    public void setInterpretationTranslate(String interpretationTranslate) {
        this.interpretationTranslate = interpretationTranslate;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DEntryPhrase{" +
        "id=" + id +
        ", entryId=" + entryId +
        ", language=" + language +
        ", phrase=" + phrase +
        ", interpretation=" + interpretation +
        ", sentence=" + sentence +
        ", part=" + part +
        ", interpretationTranslate=" + interpretationTranslate +
        ", pinyin=" + pinyin +
        "}";
    }
}
